<div class="bjui-pageHeader">
  <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('index')}" method="post">
    <input type="hidden" name="pageSize" value="${model.pageSize}">
    <input type="hidden" name="pageCurrent" value="${model.pageCurrent}">
    <input type="hidden" name="orderField" value="${param.orderField}">
    <input type="hidden" name="orderDirection" value="${param.orderDirection}">
    <div class="bjui-searchBar">
      <div class="pull-right"> <a href="{:U('add')}" class="btn btn-green" data-toggle="dialog" data-width="800" data-height="400" data-id="dialog-normal" data-mask="true" data-title="{$arr.title}-编辑">添加</a>
      <span><a href="{:U('User/outxls')}" class="btn btn-blue" data-toggle="doexport" data-icon="arrow-up" onclick="javascript:exportDialog();">导出</a></span>
      </div>
    </div>
  </form>
</div>
<div class="bjui-pageContent tableContent">
  <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
    <thead>
      <tr>
        <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
        <th>序号</th>
        <th>姓名</th>
        <th>用户等级</th>
        <th>手机</th>
		<th>邮箱</th>
        <!--<th data-order-direction="asc" data-order-field="last_login_time">最后登录时间</th>-->
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
    <notempty name="_list">
        <volist name="_list" id="vo">
            <tr data-id="{$vo.uid}">
                <td><input type="checkbox" name="ids" data-toggle="icheck" value="{$vo.uid}"></td>
                <td>{$vo.uid|default=$vo['id']}</td>
                <td>{$vo.nickname}</td>
                <!--<td>{$vo.role_name}</td>-->
                <td>
                    <if condition="$vo.level eq 0">
                        普通用户
                        <elseif condition="$vo.level eq 1"/>
                        初级会员
                    </if>
                </td>
                <td>{$vo.mobile}</td>
                <td>{$vo.email}</td>
                <!--<td>{$vo.last_login_time|time_format}</td>-->
                <td>
                    <a href="{:U('editPassword?id='.$vo['uid'])}" class="btn btn-green" data-toggle="dialog"
                       data-width="800" data-height="250" data-id="dialog-normal" data-mask="true"
                       data-title="{$vo.nickname}-编辑">修改</a>
                    <a href="{:U('User/changeStatus?method=deleteUser&id='.$vo['uid'])}" class="btn btn-red"
                        data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
                    <a href="{:U('actionLog?id='.$vo['uid'])}" class="btn btn-green"
                       data-toggle="navtab" data-id="add{$vo['id']}"
                       data-title="{$vo.nickname}用户行为">用户行为</a>
                </td>
            </tr>
        </volist>
      <else/>
    <td colspan="9" class="text-center"> aOh! 暂时还没有用户! </td>
      </notempty>
      </tbody>
  </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages"><span>每页&nbsp;</span>

        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="{$pageSize}">{$pageSize}</option>
                <option value="{$pageSize*3}">{$pageSize*3}</option>
                <option value="{$pageSize*6}">{$pageSize*6}</option>
                <option value="{$pageSize*12}">{$pageSize*12}</option>
                <option value="{$pageSize*15}">{$pageSize*15}</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$total} 条</span></div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}"
         data-page-current="{$pageCurrent}"></div>
</div>
</div>
<script>
    /**
     * 导出提示弹窗
     */
    function exportDialog(){
        var option = {};
        option['id'] = 'exportDialog';
        option['url'] = "{:U('exportDialog')}";
        option['title'] = '导出提示弹窗';
        option['width'] = 600;
        option['height'] = 100;
        option['mask'] = true;
        $(this).dialog(option);
    }
</script>
